package com.xh.bussiness.permission.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author Pitt zhang
 * @since 2020/2/18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("ts_user_subject")
public class UserSubject extends Model {

    @TableId(value = "id", type = IdType.UUID)
    private String id;

    private String userId;

    private String jyGradeRange;

    private String jyGradeRangeName;

    private String jySubject;

    private String jySubjectName;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
